import { ApiProperty } from '@nestjs/swagger'
import { IsNotEmpty } from 'class-validator'

// 定义数据传输对象
export class LoginDto {
  @ApiProperty({ description: '用户名' })
  @IsNotEmpty({ message: '用户名不能为空' })
  fUserAccount: string;

  @ApiProperty({ description: '密码' })
  @IsNotEmpty({ message: '密码不能为空' })
  fUserPassword: string;
}